package com.aqie.ad.sponsor.entity.unitcondition;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;


/**
 * 推广创意与计划的多对多关系
 *
 * @author sss
 * @date 2019/2/1
 */
@Data
@Entity
@Table(name = "creative_unit")
public class CreativeUnit implements Serializable {
    public CreativeUnit() {
    }

    public CreativeUnit(Long creativeId, Long unitId) {
        this.creativeId = creativeId;
        this.unitId = unitId;
    }
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;


    @Column(name = "creative_id", nullable = false)
    private Long creativeId;

    @Column(name = "unit_id", nullable = false)
    private Long unitId;

}




